﻿using System;
using System.Collections.Generic;
using StockTrader.DAL.IDAL;
using StockTrader.DAL.Factory;
using StockTrader.BusinessService.DataContract;
using StockTrader.OrderProcessor.Config;

namespace StockTrader.OrderProcessor.Implementation
{
    public class OrderProcessor
    {
        private IOrder dalOrder;

        public void ProcessOrder(OrderDataModel order)
        {
            try
            {
                dalOrder = StockTrader.DAL.Factory.Order.Create(Settings.DAL);
                dalOrder.Open(Settings.TRADEDB_SQL_CONN_STRING);
            }
            catch
            {
                throw;
            }
        }
    }
}
